package com.heima.test10;

import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Arrays;

public class Demo01 {
    public static void main(String[] args) throws UnknownHostException {
        InetAddress address = InetAddress.getByName("192.168.13.200");
        System.out.println(address.getHostAddress());//192.168.13.34
        System.out.println(Arrays.toString(address.getAddress()));//[-64, -88, 13, 34]
        System.out.println(address.getHostName());//DESKTOP-74EJVAM

    }
}
